package com.coco.bargain.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author minicoco
 * @version 1.0
 * @date 2021/7/21 19:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TbBargainUser implements Serializable {
    /**
     * 用户参与砍价表id
     */
    private Long id;

    /**
     * 邀请码
     */
    private String card;


    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户砍价商品id
     */
    private Long bargainItemId;

    /**
     * 自己的砍价金额
     */
    private BigDecimal myBargainPrice;

    /**
     * 砍价状态
     */
    private Integer status;

    /**
     * 砍价活动创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 总共砍价次数
     */
    private Integer sumCount;

    /**
     * 剩余次数
     */
    private Integer residueCount;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;

    /**
     * 操作时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 是否删除
     */
    private Integer isDelete;


}